import { axios } from '@/service/service'
import {} from './types'

export function getDetailTableData(
  optionCode: string,
  page: number,
  pageSize: number
): any {
  return axios({
    url: `/govern/governance/governanceDetail/${optionCode}/${page}/${pageSize}/`,
    method: 'get'
  })
}

export function getOptionsData(uri: string): any {
  return axios({
    url: uri,
    method: 'get'
  })
}

export function getGovernGlobalSize(): any {
  return axios({
    url: '/govern/governance/globalSize/',
    method: 'get'
  })
}

export function getGovernGlobalScore(): any {
  return axios({
    url: '/govern/governance/globalScore/',
    method: 'get'
  })
}
